import React from 'react';
import { Table } from 'antd';

const dataSource = [{
  name: 'c_time',
  type: 'string',
  remark: '时间'
}, {
  name: 'time_id',
  type: 'i32',
  remark: '时间编号'
}, {
  name: 'registertype_id',
  type: 'i32',
  remark: '注册类型编号'
}, {
  name: 'channel_id',
  type: 'i32',
  remark: '渠道编号'
}, {
  name: 'location_id',
  type: 'i32',
  remark: '位置编号'
}, {
  name: 'os_id',
  type: 'i32',
  remark: '系统编号'
}];

const columns = [{
  title: '列名',
  dataIndex: 'name',
  key: 'name',
}, {
  title: '数据类型',
  dataIndex: 'type',
  key: 'type',
}, {
  title: '备注',
  dataIndex: 'remark',
  key: 'remark',
}];

class TableContainer extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render()
  {
    return (
      <Table dataSource={dataSource} columns={columns} />
    );
  }
}

export default TableContainer;
